<?php
require_once 'include/mysql_class.php';
require_once 'include/NavClass.php';
global $db;
$nav=new NavClass();
//导航
$navsql="select * from tb_column where lang='cn' and nav=1";
$res=$db->query($navsql);
//幻灯片flash
$flashSql='select * from tb_flash where lang=\'cn\' order by no_order,id asc';
$frow=$db->query($flashSql);

//网站配置信息
 $webName='';
 $keyword='';
 $description='';
 $url='';
 $logo='';
 $foottel='';
//模板变量的值
/**/
$configSql='select * from tb_config where lang=\'cn\' and id in(83,84,85,109,110,120)';
$configRow=$db->query($configSql);
while($configRs=$db->fetch_array($configRow)){
	switch ($configRs['name']){
		case "met_weburl":
			$url=$configRs['value'];
			break;
		case "met_webname":
			$webName=$configRs['value'];
			break;
		case "met_logo":
			$logo=$configRs['value'];
			break;
		case "met_keywords":
			$keyword=$configRs['value'];
			break;
		case "met_description":
			$description=$configRs['value'];
			break;
		case "met_foottel":
			$foottel=$configRs['value'];
			break;		
			
	}
}
		




?>
